﻿using System;
using System.IO;
using System.Xml;

namespace Landscape
{
    class HtmlXmlReader
    {
        public static XmlReader Create(MemoryStream Input, ConformanceLevel Conformance) { 
            XmlReaderSettings settings = new XmlReaderSettings();
            settings.DtdProcessing = DtdProcessing.Parse;
            settings.ConformanceLevel = Conformance;
            settings.XmlResolver = null;

            Input.Position = 0;
            XmlReader reader = XmlReader.Create(Input, settings);
            return reader;
        }
    }
}
